# -*- coding: utf-8 -*-
import Tkinter
from PIL import *
from PIL import ImageGrab
root=Tkinter.Tk()
canvas=Tkinter.Canvas(root,width=600,height=600,bg='white')
canvas.scale('all',0,0,-1,-1)
a=[]
b=[]
for i in range(0,10):
    a.append(i*10)
    b1=i*i+a[i]
    b.append(b1)
for i in range(0,len(a)-1):
    canvas.create_line(a[i],600-b[i],a[i+1],600-b[i+1],width=2,fill='red')
canvas.pack()
root.mainloop()
img=ImageGrab.grab()
img.save('005.jpg','JPEG')